/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.digitalize.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeesite.modules.digitalize.dao.ComponentLogDao;
import com.jeesite.modules.digitalize.entity.ComponentLog;
import com.jeesite.modules.digitalize.entity.dto.BasePageQueryDto;
import com.jeesite.modules.digitalize.util.response.ResultVo;
import org.springframework.stereotype.Service;

/**
 * component_logService
 *
 * @author patronli
 * @version 2023-09-08
 */
@Service
public class ComponentLogService extends ServiceImpl<ComponentLogDao, ComponentLog> {
    public ResultVo<Page<ComponentLog>> pageList(BasePageQueryDto queryDto) {
        Page<ComponentLog> page = this.lambdaQuery().orderByDesc(ComponentLog::getCreateDate)
                .page(new Page<>(queryDto.getPageNo(), queryDto.getPageSize()));
        return ResultVo.success(page);
    }


}